package com.wdg.fegin;

import com.wdg.pojo.Cookbook;
import com.wdg.pojo.Topic;
import com.wdg.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("provider-index")
public interface IUserCenterFegin {

    @GetMapping("UserCenterController/getCookBookByUid")
     List<Cookbook> getCookBookByUid(@RequestParam("uid") int uid) ;

    @GetMapping("UserCenterController/getTopicByUid")
     List<Topic> getTopicByUid(@RequestParam("uid") int uid);

    @GetMapping("UserCenterController/getMyFocus")
    public List<User> getMyFocus(@RequestParam String uid);
    //获得我的收藏
    @GetMapping("UserCenterController/getMyStatoff")
    public List<Cookbook> getMyStatoff(@RequestParam String uid);
}
